package com.block.job.service;

import com.block.common.service.LogFactory;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.time.LocalDate;

@Component
public class DeleteMerchantPushDataLessJob {

    private static final Logger log = LogFactory.getJobLog();


    /**
     * 删除前一天 撞库失败 和 初始化的数据
     * @throws Exception
     */
    @XxlJob("deleteMerchantPushDataLessJob")
    public void delete() throws Exception {
        XxlJobHelper.log("XXL-JOB, Hello World.");

        String dateInfo = LocalDate.now().toString();

    }

}
